<?php
	class Admin_Form_Slideshow extends Zend_Form{
		
		public function __construct(){
			
			$title = new Zend_Form_Element_Text('title');
        	$title->addFilter('StringTrim')
                ->setRequired(true)
                ->addValidator('NotEmpty')
                ->setAttrib('class', 'form-control')
                ->setDecorators(array('ViewHelper'));
                
            $website = new Zend_Form_Element_Text('website');    
            $website->addFilter('StringTrim')
                ->setRequired(true)
                ->addValidator('NotEmpty')
                ->setAttrib('class', 'form-control')
                ->setDecorators(array('ViewHelper'));
                
            $weight = new Zend_Form_Element_Text('weight');
            $weight->addFilter('StringTrim')
                ->setRequired(true)
                ->addValidator('NotEmpty')
                ->setAttrib('class', 'form-control')
                ->setDecorators(array('ViewHelper'));
            
            $TypeOption ['0']= 'Slideshow';
        	$TypeOption ['1']= 'Quảng Cáo';
        	$TypeOption ['2']= 'Logo';
        	
            $type = new Zend_Form_Element_Select('type');
            $type->setRequired(TRUE)
            	->addFilter('StringTrim')
            	->setAttrib('class', 'form-control')
            	->setMultiOptions($TypeOption);
            	
           	$status = new Zend_Form_Element_Radio('status');
			$status->addFilter('StringTrim')	
				->setAttrib ( 'class', 'grey' )
				->setMultiOptions(array('1' => " Có", '0' => ' Không'))
				->setValue('1')		
				->setDecorators ( array (
						'ViewHelper'
				) );
                
             $elements = array($title,$website,$weight,$type,$status);
             
             $this->addElements($elements);
		}
	}

?>